<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css"></link>
<link href="css/bootstrap.min.css" rel="stylesheet" media="screen"></link>
<link href="css/sticky-footer-navbar.css" rel="stylesheet"> </link>
<link href="css/custom.css" rel="stylesheet"> </link>

<link rel="stylesheet" href="css/bootstrap.css" />
<link rel="stylesheet" href="css/bootstrap-responsive.css" />
<link rel="stylesheet" href="css/custom.css" />
<link rel="shortcut icon" href="<?php echo base_url().'images/logo.png';?>" />


<title>Ecoopratio</title>

</head>



<?php
$id_usergroup = $this->session->userdata('id_usergroup');//ambil id usergroup
?>

<nav>
	<ul>
		<li><?php echo anchor('home', 'Home'); ?></li>
		<li><?php echo anchor('#', 'Aktivitas'); echo "<ul>";
			if($id_usergroup == 6){
			echo "<li>"; echo anchor('bobot','Bobot'); echo "</li>";}
			
			if($id_usergroup == 2){
			echo "<li>"; echo anchor('cabang','Cabang Koperasi'); echo "</li>";}
			/*if($id_usergroup == 2 || $id_usergroup == 6 ||$id_usergroup == 2 ){
		    echo "<li>"; echo anchor('Lihat Panduan','Lihat Panduan'); echo "</li>";}*/
			
			if($id_usergroup == 1 || $id_usergroup == 2 || $id_usergroup == 6 || $id_usergroup == 4){
			echo "<li>"; echo anchor('#','Laporan Analisa rasio'); echo "<ul>";
				 echo "<li>"; echo anchor('laporan/bulan1','1 Bulanan'); echo "</li>";
				 echo "<li>"; echo anchor('laporan/bulan3','3 Bulanan'); echo "</li>";
				 echo "<li>"; echo anchor('laporan/bulan6','6 Bulanan'); echo "</li>";
				 echo "<li>"; echo anchor('laporan/bulan12','12 Bulanan'); echo "</li>";
			echo "</ul>"; echo "</li>";}
			if($id_usergroup == 2 || $id_usergroup == 4){
			echo "<li>"; echo anchor('analisa/form','Analisa Rasio'); echo "<ul>";
		echo "</ul>"; echo "</li>";}
		echo "</ul>"; echo "</li>";
		      
			
			
		
		
		
		if($id_usergroup == 1 || $id_usergroup == 6){
		echo "<li>"; echo anchor('#','Pengaturan'); echo "<ul>";
			echo "<li>"; echo anchor('user','User'); echo "</li>";
		echo "</ul>"; echo "</li>";}
		echo "<li>"; echo anchor('user/change_pass_process','Ubah Password'); echo "</li>";
		
	 
		echo "<li>"; echo anchor('login/process_logout','Log Out', array('onclick' => "return confirm('Apa Anda yakin ingin keluar?')")); echo "</li>";
		?>
	</ul>
</nav>